// export const baseUrl="https://192.168.247.235:8989"
export const baseUrl="https://127.0.0.1:8989"

/* export const url=()=>{
	return baseUrl;
} */ 

export const  request=(params)=>{
  return new Promise((resolve,reject)=>{
    uni.request({
      ...params,
      success:(result)=>{
        resolve(result);
      },
      fail:(err)=>{
        wx.showToast({
          title: '连接失败',
          icon:'none'
        })
        reject(err);
      }
    });
  });
}